package com.gxa.community.core.pojo.domain.goodsdo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.GroupSequence;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 商品标签
 * </p>
 *
 * @author gxa
 * @since 2022-07-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("goods_tag")
@ApiModel(value = "GoodsTag对象", description = "商品标签")
public class GoodsTag implements Serializable{

//    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
//    @NotNull(message = "修改用户必须带id",groups = valid1.class)  //失败
    private Integer id;
    @NotEmpty(message = "标签名称不能为空")
    @ApiModelProperty("标签名称")
    private String name;
    @ApiModelProperty("标签描述")
    private String tips;
    @ApiModelProperty("排序序号")
    private Integer indexs;
    @ApiModelProperty("图片地址")
    private String pic;
    @ApiModelProperty("状态 0禁用 1启用")
    private Integer status;

    /**
     * 定义分组类
     */
//    @GroupSequence({valid1.class})
//    public interface valid1{
//
//    }

}
